//
//  BaseModel.m
//  TravelEveryDay
//
//  Created by 路洪宇 on 15/10/15.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
- (instancetype)initWithDictionary:(NSDictionary *)dic
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary
{
    return [[self alloc]initWithDictionary:dictionary];
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
